//
//  GameScene.h
//  Frog Jump
//
//  Created by acumen on 7/26/13.
//
//

#ifndef __Frog_Jump__GameScene__
#define __Frog_Jump__GameScene__

#include <iostream>
#include "GeneralDef.h"
#include "GameController.h"
#include "MenuScene.h"

USING_NS_CC;

class GameScene : public cc::CCLayer {
private:
    //////////// VARIABLES
    // Touch location
    CCArray *pArrFrames;
    CCAction *pAction;
    CCSprite *pFrog;
    /////////// METHODS
    void backToMenuScene(CCObject *pSender) {
        GameController::replaceScene(MenuScene::scene());
    }
public:
    virtual bool init();
    virtual void registerWithTouchDispatcher();
    virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
    static cc::CCScene *scene();
    CREATE_FUNC(GameScene);
    
    virtual void update(float dt);
    ~GameScene();
};

#endif /* defined(__Frog_Jump__GameScene__) */
